﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StudentCreateAcc.aspx.cs"
    Inherits="SMSSnew.UI.StudentCreateAcc" %>

<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <div class="container">
        <form id="Form1" class="well span11 text-center" runat="server">
        <asp:HyperLink ID="HyperLink6" runat="server" CssClass="text-right"><h5>Logout</h5></asp:HyperLink>
        <h4 class="text-info">
            Create Account</h4>
        <br />
        <table class="table container text-left">
            
            
            <tr>
                <td class="Colwidth">
                    Username:
                </td>
                <td>
                    <asp:TextBox ID="txtUname" runat="server" CssClass="span4"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtUname" ErrorMessage="Enter a user name..."></asp:RequiredFieldValidator>
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="txtUname" 
                        ErrorMessage="User name should be only alpha numeric charecters...!" 
                        ValidationExpression="[a-zA-Zs0-9]{2,25}$" AutoPostBack="true" Display="Static"
                        ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    <asp:TextBox ID="txtPword" runat="server" CssClass="span4" TextMode="Password" 
                        MaxLength="25"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtPword" ErrorMessage="Enter a password..."></asp:RequiredFieldValidator>
                       
                </td>
            </tr>
            <tr>
                <td class="Colwidth">
                    Type Password Again:
                </td>
                <td>
                    <asp:TextBox ID="txtRetypePword" runat="server" CssClass="span4" 
                        TextMode="Password" MaxLength="25"></asp:TextBox>
                </td>
                <td>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtPword" ControlToValidate="txtRetypePword" 
                        ErrorMessage="Both passwords should be same...!"></asp:CompareValidator>
                </td>
                
            </tr>
            <tr>
                <td class="Colwidth">
                    Security question:
                </td>
                <td>
                    <asp:DropDownList ID="comSecQ" runat="server">
                        <asp:ListItem>What is you Favourite Artist?</asp:ListItem>
                        <asp:ListItem>What is your birth place?</asp:ListItem>
                        <asp:ListItem>What is your favourite food?</asp:ListItem>
                        <asp:ListItem>What is your pet&#39;s name</asp:ListItem>
                    </asp:DropDownList>
                </td>
                
            </tr>
            <tr>
                <td class="Colwidth">
                    Security Answer:
                </td>
                <td>
                    <asp:TextBox ID="txtSecAnswer" runat="server" Width="282px"></asp:TextBox>
                </td>
                <td>
                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ErrorMessage="Enter your answer..." ControlToValidate="txtSecAnswer"></asp:RequiredFieldValidator>
                
                </td>
            </tr>
            
            <tr>
                <td class="Colwidth">
                    Full Name:
                </td>
                <td>
                    <asp:TextBox ID="txtFname" runat="server" CssClass="span4" 
                        ontextchanged="txtFname_TextChanged"></asp:TextBox>
                </td>
                
                <td>
                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ErrorMessage="Enter your full name..." ControlToValidate="txtFname"></asp:RequiredFieldValidator>
                
                </td>
            </tr>
            <tr>
                <td class="Colwidth">
                    E-mail Address:
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="span4"></asp:TextBox>
                </td>
                
                <td>
                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ErrorMessage="Enter your Email adderess..." ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="Enter avalied Email adderess...!" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                
                </td>
            </tr>
            <tr>
                <td class="Colwidth">
                    Phone Number:
                </td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" CssClass="span4"></asp:TextBox>
                </td>
                <td>
                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="txtPhone" ErrorMessage="Enter your phone number..."></asp:RequiredFieldValidator>
                    <br />
                
                </td>
            </tr>
            <tr>
                <td class="Colwidth">
                    <asp:Button ID="btnCreate" runat="server" Text="CREATE" 
                        CssClass="btn btn-success" onclick="btnCreate_Click" />
                </td>
                <td>
                </td>
            </tr>
        </table>
        </form>
    </div>

    <script src="js/bootstrap.js"></script>

</body>
</html>
